config := googleProviderConfig(t)

url, err := replaceVarsForTest(config, rs, "{{ServiceUsageBasePath}}projects/{{project}}/services/{{service}}/consumerQuotaMetrics/{{metric}}/limits/{{limit}}/consumerOverrides/")
if err != nil {
	return err
}

billingProject := ""

if config.BillingProject != "" {
	billingProject = config.BillingProject
}

res, err := sendRequest(config, "GET", billingProject, url, config.userAgent, nil)
if err == nil {
	// Sometimes the API returns an empty response instead of erroring, treat empty as nonexistent
	if len(res) != 0 {
		return fmt.Errorf("ServiceUsageConsumerQuotaOverride still exists at %s", url)
	}
}